﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/_console/_console.Master"
    CodeBehind="user-list.aspx.cs" Inherits="SmartSpace.WebApp._console.core.user_list" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMenu" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderTitle" runat="server">
    用户列表
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderToolbar" runat="server">
    <asp:HyperLink ID="_ctlLinkAdd" runat="server" NavigateUrl="~/_console/core/user-add.aspx">添加用户</asp:HyperLink>
    <asp:LinkButton ID="_ctlBtnDelete" runat="server" Text="Delete" OnClick="_ctlBtnDelete_Click" OnClientClick="return confirm('do you want to delete selected users?');" CssClass="important" />
    <asp:LinkButton ID="_ctlBtnResetPassword" runat="server" Text="ResetPassword" OnClick="_ctlBtnResetPassword_Click" OnClientClick="return confirm('do you want to reset password for selected users?');" CssClass="important" />
    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/_console/core/user-upload.aspx">批量导入</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolderContent" runat="server">
    <div class="form">
        <asp:Repeater ID="_ctlListUser" runat="server">
            <HeaderTemplate>
                <table>
                    <tr>
                        <th>-
                        </th>
                        <th>Account
                        </th>
                        <th>Name
                        </th>
                        <th>Email
                        </th>
                        <th>Telephone
                        </th>
                        <th>Password
                        </th>
                        <th>Operate
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:CheckBox ID="_ctlCheckId" runat="server" />
                        <asp:HiddenField ID="_ctlHiddenId" runat="server" Value='<%# Eval("Id") %>' />
                    </td>
                    <td>
                        <%# Eval("Account") %>
                    </td>
                    <td>
                        <%# Eval("Name") %>
                    </td>
                    <td>
                        <%# Eval("Email") %>
                    </td>
                    <td>
                        <%# Eval("Telphone") %>
                    </td>
                    <td>
                        <%# Eval("Password") %>
                    </td>
                    <td>
                        <a href='./user-edit.aspx?id=<%# Eval("Id") %>'>edit</a>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
